#include<iostream>
using namespace std;

int main()
{
	int s = 1;
	double sum = 0;
	double k = 0;
	cin >> k;
	while (sum <= k)
	{
		sum += 1.0 / s;
		++s;
	}
	printf("%d", s-1);
}